package com.lzt.miaosha.dao;

import com.lzt.miaosha.domain.User;
import org.apache.ibatis.annotations.*;

import com.lzt.miaosha.domain.MiaoshaUser;

@Mapper
public interface MiaoshaUserDao {
	
	@Select("select * from miaosha_user where id = #{id}")
	public MiaoshaUser getById(@Param("id") long id);

	@Insert("insert into user(id, name)values(#{id}, #{name})")
	public int insert(User user);

	@Update("update miaosha_user set password = #{password} where id = #{id}")
	public void update(MiaoshaUser toBeUpdate);
}
